<?php
include 'D:/dingjiangbbs/common/home.php';
//屏蔽notice错误
error_reporting(E_ALL ^ E_NOTICE);

//查询首页头尾显示的站点
$site = select($link,DB_TABLE_SITE,'*',"where control=0");
//var_dump($site);

/**************帖子数，会员，*************/  

//遍历版块cg
$res      = select($link,DB_TABLE_CG,'*'," order by orderby");

//查个人信息
$username = $_COOKIE['username'];
$user     = select($link,DB_TABLE_USER,'*',"where username='$username'");
//var_dump($user);

$res_user = select($link,DB_TABLE_USER,'*',"order by addtime");
//文件名
$web_site 	 = WEB_SITE;
$yzm   		 = WEB_SITE.'helper/yzm.php'; 
$views_home  = WEB_SITE.'views/home/';
$admin_home  = WEB_SITE.'admin/home/';


$var1 = compact('site','data_head','username','motifcount','VIP','web_site','yzm','views_home','admin_home','res','user','res_user');
display('head.html',$var1);



